﻿<Window x:Class="PorownywarkaGUI.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:w="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
        xmlns:w2="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
        Name="window"
        Title="MainWindow" Height="518" Width="857">
        
    
    
    <Grid>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="80"></RowDefinition>
        </Grid.RowDefinitions>
                    
                       
            
                <w:Chart Grid.Row="0" MinHeight="400" VerticalAlignment="Stretch" Name="wykres" Title="ilość posortowanych elementów do czasu">
                </w:Chart>



        <StackPanel Grid.Row="1" HorizontalAlignment="Center">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
                    <Button Margin="5" Name="Play" Content="start" Click="Play_Click"></Button>
                    <Button IsEnabled="False" Margin="5" Name="Paused" Content="pause" Click="Paused_Click"></Button>

                    <Button Margin="5" HorizontalAlignment="Right"  Click="Button_Click" Content="wyjscie"></Button>

                    <TextBlock Width="auto"  Name="single" Margin="5" Height="20" HorizontalAlignment="Right"  >

                    </TextBlock>

                </StackPanel>

                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                    <CheckBox Margin="5, 15, 5, 5" Name="bubblesort" IsChecked="False">bubble sort</CheckBox>
                    <CheckBox Margin="5, 15, 5, 5" Name="heapsort" IsChecked="True">heap sort</CheckBox>
                    <CheckBox Margin="5, 15, 5, 5" Name="quicksort" IsChecked="True">quick sort</CheckBox>
                    <CheckBox Margin="5, 15, 5, 5" Name="mergesort" IsChecked="False">merge sort</CheckBox>
                    <CheckBox Margin="5, 15, 5, 5" Name="countingsort" IsChecked="False">counting sort</CheckBox>

                    <StackPanel Orientation="Horizontal" Margin="20, 5, 5, 0">
                        <Label Margin="5" Content="ilość danych: "></Label>
                        <TextBox TextAlignment="Center" Text="900000" Width="100" Margin="5" Name="iloscdanych" ></TextBox>
                    </StackPanel>

                    <StackPanel Orientation="Horizontal" Margin="5, 5, 10, 0">
                        <Label Margin="5" Content="kwant czasu [ms]: "></Label>

                        <TextBox TextAlignment="Center" Text="20" Width="50" Margin="5" Name="kwantczasu" ></TextBox>

                    </StackPanel>


                </StackPanel>
            </StackPanel>
            

                        

        
        
        
    </Grid>
</Window>
